<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
    </style>
</head>
<body style="width: 100%;height: 100%;">
    <!--判断是否有用户 有登录用户就不显示-->
   <div th:if="${session.logined} == null">
        <a th:href="@{/toLogin}">登录</a>
    </div>
    <div th:if="${session.logined} != null">
        <a th:href="@{/logout}">注销</a>
    </div>
    <a th:href="@{/user/add}">add</a>|<a th:href="@{/user/update}">update</a>
</body>
</html>